package com.k2data.k2app.util;

import java.util.List;

/**
 * Created by clb on 17-4-19.
 */
public class ListUtils {
	public static String listToString(List<String> list, String sep) {
		if (list == null) {
			return null;
		}
		StringBuilder result = new StringBuilder();
		boolean flag = false;
		for (String s : list) {
			if (flag) {
				result.append(sep==null?"":sep);
			} else {
				flag = true;
			}
			result.append(s);
		}
		return result.toString();
	}
}
